// StationDlg.cpp : implementation file
//

#include "stdafx.h"
#include "GraphView.h"
#include "StationDlg.h"
#include "afxdialogex.h"


// CStationDlg dialog

IMPLEMENT_DYNAMIC(CStationDlg, CDialogEx)

CStationDlg::CStationDlg(CWnd* pParent /*=NULL*/)
	: CDialogEx(CStationDlg::IDD, pParent)
    , _strLongitude(_T(""))
    , _strLatitude(_T(""))
    , _strStationName(_T(""))
    , _strLine(_T(""))
{

}

CStationDlg::~CStationDlg()
{
}

void CStationDlg::DoDataExchange(CDataExchange* pDX)
{
    CDialogEx::DoDataExchange(pDX);
    DDX_Text(pDX, IDC_EDIT_LONGITUDE, _strLongitude);
    DDX_Text(pDX, IDC_EDIT_LATITUDE, _strLatitude);
    DDX_Text(pDX, IDC_EDIT_STATION_NAME, _strStationName);
    DDX_Text(pDX, IDC_EDIT_LINE, _strLine);
}


BEGIN_MESSAGE_MAP(CStationDlg, CDialogEx)
    ON_BN_CLICKED(IDOK, &CStationDlg::OnBnClickedOk)
END_MESSAGE_MAP()


// CStationDlg message handlers


void CStationDlg::OnBnClickedOk()
{
    
    CDialogEx::OnOK();
}

double CStationDlg::Longitutde()
{
    return _wtof((LPCWSTR)_strLongitude);
}

double CStationDlg::Latitude()
{
    return _wtof((LPCWSTR)_strLatitude);
}